﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rhino.Mocks;
using CID.Domain.Audit;
using CID.Domain.Operations;

namespace CID.Domain.Tests.Audit
{
    static class StubsBuilder
    {
        public static IReleaseDeploymentLog BuildReleaseDeploymentLogStub(IEnvironment environment = null)
        {
            var result = MockRepository.GenerateStub<IReleaseDeploymentLog>();
            result.Stub(x => x.Environment).Return(environment);
            return result;
        }

        public static IVersionDeploymentLog BuildVersionDeploymentLogStub()
        {
            return MockRepository.GenerateStub<IVersionDeploymentLog>();
        }

        public static IParameterDeploymentLog BuildParameterDeploymentLogStub()
        {
            return MockRepository.GenerateStub<IParameterDeploymentLog>();
        }
    }
}
